package com.chen;

import com.chen.pojo.Hello;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class MainTest02 {
    public static void main(String[] args) {
        XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("Beans.xml"));
        Hello hello = (Hello) beanFactory.getBean("hello");
        hello.getHello();
    }
}
